package com.anytrek.cloudcommon.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @TableName t_orders
 */
@TableName(value ="t_orders")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OrdersEntity {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 商品id
     */
    @TableField(value = "commodity_id")
    private Integer commodityId;

    /**
     * 数量
     */
    @TableField(value = "`count`")
    private Integer count;

    /**
     * 价格
     */
    @TableField(value = "price")
    private Integer price;
}